package bancosys.tec.persist.base.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import jmine.tec.persist.annotation.Alias;
import jmine.tec.persist.annotation.Comment;

import org.hibernate.annotations.Filter;
import org.hibernate.annotations.Filters;

import bancosys.tec.persist.bussobj.AuthPersistableBusinessObject;

/**
 * @created Feb 7, 2007
 * @author Gustavo Almeida
 */
@Entity
@Filters({ @Filter(name = "authFilter", condition = "auth = :auth") })
@Table(name = "authteste_bean")
@Alias(value = "authbe")
@Comment(table = "authteste_bean", value = "Sem comentários.")
public class AuthTestBean extends AuthPersistableBusinessObject {
    private Long id = null;

    private String nome = null;

    /**
     * @return Returns the id.
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return this.id;
    }

    /**
     * @param id The id to set.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return Returns the nome.
     */
    @Column(name = "NOME", nullable = false, length = 50)
    public String getNome() {
        return this.nome;
    }

    /**
     * @param nome The nome to set.
     */
    public void setNome(String nome) {
        this.nome = nome;
    }
}
